const TransformPages = require('uni-read-pages')
const tfPages = new TransformPages({
    cli:true,      //当前是否为脚手架初始化的项目
    includes:['path','meta','auth','name']
})
module.exports = {
    configureWebpack: {
        plugins: [
            new tfPages.webpack.DefinePlugin({
                ROUTES: JSON.stringify(tfPages.routes)
            })
        ]
    },
    transpileDependencies:['uni-simple-router']//vue-cli项目必加此配置 否则路由拦截无效
}
